package com.mjlf.project.dao;

import com.mjlf.framework.annotation.mydata.Mapper;
import com.mjlf.framework.annotation.mydata.Param;
import com.mjlf.framework.annotation.mydata.Sql;
import com.mjlf.project.entity.User;

import java.util.List;

/**
 * @auther a123
 * @create 2018-09-03 18:04
 * @desc
 */
@Mapper
public class UserDao {

    @Sql("SELECT user_name AS username, password FROM t_user WHERE user_name = #{username}")
    public List<User> getUserByName(@Param("username") String username){
        return null;
    }
}
